#ifndef __DATA_SERVER_CONN_INCLUDE__
#define __DATA_SERVER_CONN_INCLUDE__

#include "dk_core.h"
#include "logger.h"
#include "globals.h"

class CliConn: public DKBaseConnection {

  virtual void OnConnect() {
    LOG_DEBUG("new CliConn fd:%d %s:%d", fd_, host_.c_str(), port_);
  }
  
  virtual void OnClose() {
    LOG_DEBUG("CliConn close fd:%d %s:%d",
        fd_, host_.c_str(), port_); 
  }

  virtual void OnError() {
    LOG_DEBUG("CliConn Error %s", this->get_error_string());
  }

  virtual void OnWrite() {
  }

  enum READ_STATUS OnRead();
};



#endif
